package cn.idock.frame.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import cn.idock.frame.PzApplication;
import cn.idock.frame.R;
import cn.idock.frame.download.DownloadManager;

public class MainActivity extends Activity {

	String[] strs = new String[] { "http://down.myapp.com/android/50068/888070/pengyou_3.3.0.322_android_20130322185526dev.apk",//
			"http://down.myapp.com/android/48810/1158824/com.qzone_51.apk",//
			"http://down.myapp.com/android/45592/1094660/qq2013_4.1.0.1556_android.apk",//
			"http://down.myapp.com/android/49367/961943/qqbrowser_4.2.0.430.apk" };
	DownloadManager mDownloadManager;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		mDownloadManager = PzApplication.getInstance().getDownloadManager();

		// JamendoApplication.getInstance().getDownloadManager().download(getPlayerEngine().getPlaylist().getSelectedTrack());
	}

	public void onClick0(View v) {
		DownloadActivity.launch(this);
	}

	public void onClick1(View v) {
		mDownloadManager.download(strs[0]);
	}

	public void onClick2(View v) {
		mDownloadManager.download(strs[1]);
	}

	public void onClick3(View v) {
		mDownloadManager.download(strs[2]);
	}

	public void onClick4(View v) {
		mDownloadManager.download(strs[3]);
	}

}
